/**
 * Created by Administrator on 2017/3/21.
 */
import React, {Component} from 'react';
import {Form, Input, Radio, Select, Switch, Button } from 'antd';
import {connect} from 'dva';
import moment from 'moment'
import request from '@/utils/request';
import Zmage from 'react-zmage';
import Wechat_info  from './../../images/wechat_info.jpg'
const FormItem = Form.Item;
const { TextArea } = Input;
const RadioGroup = Radio.Group;
const Option = Select.Option;
class AddPoliciesForm extends Component {
  constructor(props) {
    super(props);
    this.state = {
    };
  }

  componentDidMount() {
  }
  render() {
    const formItemLayoutWithLabel = {
      labelCol: {
        xs: {span: 24},
        sm: {span: 5},
      },
      wrapperCol: {
        xs: {span: 24},
        sm: {span: 17},
      }
    };

    const {getFieldDecorator} = this.props.form;
    return (
      <div>
            <Form>
              <FormItem
                {...formItemLayoutWithLabel}
                label={(<span>留言时间</span>)}
              >
                <p style={{margin:0,color:'#222',lineHeight:'40px'}}>
                  {
                    this.props.editRecord.created_at
                  }
                </p>
              </FormItem>
              <FormItem
                {...formItemLayoutWithLabel}
                label={(<span>留言姓名</span>)}
              >
                <p style={{margin:0,color:'#222',lineHeight:'40px'}}>
                  {
                    this.props.editRecord.name
                  }
                </p>
              </FormItem>
              <FormItem
                {...formItemLayoutWithLabel}
                label={(<span>联系电话</span>)}
              >
                <p style={{margin:0,color:'#000',lineHeight:'40px'}}>
                  {
                    this.props.editRecord.telephone
                  }
                </p>
              </FormItem>
              <FormItem
                {...formItemLayoutWithLabel}
                label={(<span>电子邮箱</span>)}
              >
                <p style={{margin:0,color:'#000',lineHeight:'40px'}}>
                  {
                    this.props.editRecord.email
                  }
                </p>
              </FormItem>
              <FormItem
                {...formItemLayoutWithLabel}
                label={(<span>留言内容</span>)}
              >
                <p style={{margin:0,color:'#000',lineHeight:'35px'}}>
                  {
                    this.props.editRecord.content
                  }
                </p>
              </FormItem>
            </Form>

      </div>
    );
  }
}

const AddPoliciesFormWrap = Form.create()(AddPoliciesForm);
export default connect()(AddPoliciesFormWrap);


